// Table A5. Robustness checks foreign versus domestic firms
use "eseewithinfirm.dta", clear

local filename "tableA5"
xi: xtivreg2 lnval crisisXlonginvXdomfir longinvXdomfir i.catyr if  forplans==1, fe cluster(firmid indyear) partial(i.catyr)
outreg2 using "`filename'", word replace label  nocons dec(3)  sortvar(longinvXdomfir crisisXlonginvXdomfir)
xi: xtivreg2 lnval crisisXlonginvXdomfir longinvXdomfir i.catyr if forshares==1, fe cluster(firmid indyear) partial(i.catyr)
outreg2 using "`filename'", word  label  nocons dec(3)  sortvar(longinvXdomfir crisisXlonginvXdomfir)
